package rus.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table
public class ContentImage implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7133820238928788967L;
	
	private String URI;
	
	private byte[] data;
	
	@Id
	@Column(unique=true)
	public String getURI() {
		return URI;
	}

	@Column(name = "data", unique = false, nullable = false, insertable = true, updatable = true)
	public byte[] getData() {
		return data;
	}

	public void setURI(String uri) {
		URI = uri;
	}

	public void setData(byte[] data) {
		this.data = data;
	}
	

}
